package com.example.shiwuyouproject.ui.fragment.my.activity.adapter
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.shiwuyouproject.R
import com.example.shiwuyouproject.ui.fragment.my.activity.bean.Subject

class SubjectLefitAdapter(var myData:MutableList<Subject>?):BaseQuickAdapter<Subject,BaseViewHolder>(
    R.layout.item_subjectlefit,myData) {
    override fun convert(helper: BaseViewHolder?, item: Subject?) {
        helper?.getView<TextView>(R.id.tvName)?.isSelected=item?.subStatus!!
        helper?.setText(R.id.tvName,item.name)
        helper?.setGone(R.id.viewLiner,item.subStatus)
    }
}